<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

include('NationState.php');

/**
 * Description of Nation
 *
<<<<<<< .mine
 */

class Nation {
    function  __construct($newId, $nationName) {
        connectDB();
        addNewNation($newId, $nationName);
        echo 'In constructing new Nation';
    }

    function addNewNation($newId, $nationName){
        return  mysql_query("INSERT INTO nations
             (id, nationName, population, federalTax) VALUES($newID, '$nationName', 1000, 0.2)");
    }

    function getNationState($user){
        $result = mysql_query("SELECT * FROM nations WHERE nationName= '$user' ");
        $row = mysql_fetch_array($result);
    }
}
?>
